package com.example.auth.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

/**
 * @ClassName AccessTokenConfig
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2020/4/24 11:13 AM
 * @Version 1.0
 */

/**
 * 配置token令牌信息
 */
@Configuration
public class AccessTokenConfig {

	/**
	 * 指定使用内存存储token信息
	 * @return
	 */
	@Bean
	TokenStore tokenStore() {
		return new InMemoryTokenStore();
	}
}
